package com.bw.visitor_module.visitor

import com.bw.visitor_module.visitor.entity.CarEntity
import com.bw.visitor_module.visitor.entity.DeptEntity
import com.bw.visitor_module.visitor.entity.VisitorEntity
import com.kf.common.entity.BaseEntity
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface ApiService {
    //申请部门接口
    @POST("sysDepartment/selMyDepartment")
    fun requestDept(@Body body: RequestBody): Flow<BaseEntity<List<DeptEntity>>>

    //预约访问
    @POST("sysVisitor/addVisitor")
    fun requestVisitor(@Body body: RequestBody): Flow<BaseEntity<VisitorEntity>>

    //添加车辆接口
    @POST("sysCar/addCar")
    fun requestCar(@Body body: RequestBody): Flow<BaseEntity<CarEntity>>
}